#include "Coroutines/Async.h"

#include <iostream>

Task<int> h() { co_return 42; }

Task<int> g() {
    int r = co_await h();
    std::cout << "h(): return " << r << '\n';
    co_return 1024;
}

int main() {
    int r = SyncWait(g());
    std::cout << "g(): return " << r << '\n';
}
